﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mindfor.Web.Data
{
	/// <summary>
	/// Represents one log type info.
	/// </summary>
	public class LogType
	{
		/// <summary>
		/// Gets id.
		/// </summary>
		public byte Id { get; protected set; }

		/// <summary>
		/// Gets name.
		/// </summary>
		public string Name { get; protected set; }

		/// <summary>
		/// Gets internal sys name.
		/// </summary>
		internal protected string SysName { get; set; }

		/// <summary>
		/// Initalizes new instance. You can not use standart ids and names:
		/// 0 - Message,
		/// 1 - Warning,
		/// 2 - Error.
		/// </summary>
		public LogType(byte id, string name)
		{
			Id = id;
			Name = name;
			SysName = name.ToLower();
		}
	}
}
